<template>
  <div id="app">
    <router-view />
  </div>
</template>

<script>
export default  {
  name:  'App',
    metaInfo() {
        return {
            title: this.$store.state.settings.dynamicTitle && this.$store.state.settings.title,
            titleTemplate: title => {
                return title ? `${title} - ${process.env.VUE_APP_TITLE}` : process.env.VUE_APP_TITLE
            }
        }
    },
    methods:{
        // _isMobile() {
        //       let flag = navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)
        //       return flag;
        //     }
    },
    mounted(){
        // if (this._isMobile()) {
        //   // alert("手机端");
        //   this.$router.replace('/ylogin');
        // } else {
        //   // alert("pc端");
        //   this.$router.replace('/login');
        // }
    },
}
</script>
<style>
*{
  margin: 0;
  padding: 0;
}
ul,li{
  list-style-type: none;
}
.el-table .warning-row {
    background: rgb(255, 255, 255) !important;
}

.el-table .success-row {
  background: rgba(173, 226, 250, 0.1) !important;
}
.el-table tbody .success-row:hover>td{
    background: rgba(173, 226, 250, 0.2) !important;
}
.app-container{
  background: #fff;
}
.el-checkbox__inner {
    border-color: #1890ff !important ;
}
</style>
